import 'package:flutter/material.dart';
class Person extends StatefulWidget {
  @override
  _PersonState createState() => _PersonState();
}

class _PersonState extends State<Person> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Row(
          children: <Widget>[
            ClipOval(
              child: Image.network('https://gitee.com/CASE_CAI/img/raw/master/shengdoushixingshi.jpg', width: 60, height: 60),
            ),
            SizedBox(width: 20),
            GestureDetector(
              onTap: () {
                Navigator.pushNamed(context, 'login');
              },
              child: Text('姓名', style: TextStyle(fontSize: 28, color: Colors.blueAccent))
            ),
          ],
        ),
        SizedBox(height: 30),
        Expanded(child: Column(
          children: <Widget>[
            Container(
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  Icon(Icons.description, size: 20, color: Colors.blueAccent),
                  Expanded(
                    child: Padding(
                      padding: EdgeInsets.only(left: 10,),
                      child: Text('订单', style: TextStyle(fontSize: 18, color: Colors.blueAccent)),
                    )
                  ),
                  Icon(Icons.arrow_forward_ios, size: 26, color: Colors.grey)
                ],
              ),
              decoration: BoxDecoration(border: Border(bottom: BorderSide(color: Colors.grey))),
              height: 60,
            ),
            Container(
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  Icon(Icons.description, size: 20, color: Colors.blueAccent),
                  Expanded(
                    child: Padding(
                      padding: EdgeInsets.only(left: 10),
                      child: Text('关于', style: TextStyle(fontSize: 18, color: Colors.blueAccent)),
                    )
                  ),
                  Icon(Icons.arrow_forward_ios, size: 26, color: Colors.grey)
                ],
              ),
              decoration: BoxDecoration(border: Border(bottom: BorderSide(color: Colors.grey))),
              height: 60,
            ),
            Container(
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: <Widget>[
                  Icon(Icons.settings, size: 20, color: Colors.blueAccent),
                  Expanded(
                    child: Padding(padding: EdgeInsets.only(left: 10),
                      child: Text('设置', style: TextStyle(fontSize: 18, color: Colors.blueAccent)),
                    )
                  ),
                  Icon(Icons.arrow_forward_ios, size: 26, color: Colors.grey)
                ],
              ),
              decoration: BoxDecoration(border: Border(bottom: BorderSide(color: Colors.grey))),
              height: 60,
            ),
          ],
        )),
//        MaterialButton(
//          child: Text('登录', style: TextStyle(fontSize: 20, color: Colors.white)),
//          color: Colors.blueAccent,
//          minWidth: 300,
//          height: 45,
//          onPressed: () {
//            print('点击了登录');
//            Navigator.pushNamed(context, 'login');
//          }
//        )
      ],
    );
  }
}
